#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<iostream>
using namespace std;
class Date
{
public:
	friend ostream& operator <<(ostream& out, const Date& d);

	Date(int year = 2020, int month = 9, int day = 4)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void Print()
	{
		cout << _year << " " << _month << " " << _day << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};
ostream& operator <<(ostream& out, const Date& d)
{

	out << d._year <<"  " << d._month <<"  " << d._day<<endl;
	return out;
}
int main()
{
	Date d1;
	Date d2(2003, 9, 8);
	cout << d1<<d2;
	return 0;
}